package com.park.dao;

import com.park.model.Park;
import com.park.model.WebUtil;
import com.park.model.WxPaidrecord;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface WxPaidrecordMapper {
    /**
     * 根据openId查询缴费记录
     * @param wxPaidrecord
     * @return
     */
    public List<Map<String, Object>> selectWxPaidrecordList(WxPaidrecord wxPaidrecord);

    /**
     *  添加缴费记录
     * @param wxPaidrecord
     * @return
     */
    public boolean insertWxPaidrecord(WxPaidrecord wxPaidrecord);

    /**
     * 修改缴费记录
     * @param wxPaidrecord
     * @return
     */
    public boolean updateWxPaidrecord(WxPaidrecord wxPaidrecord);

    /**
     * 根据订单编号查询缴费记录
     * @param outTradeNo
     * @return
     */
    public WxPaidrecord selectWxPaidrecordByOutTradeNo(@Param("outTradeNo")String outTradeNo);


    /**
     * 根据 userId 查询缴费记录
     * @param wxPaidrecord
     * @return
     */
    public List<Map<String, Object>> selectWxPaidrecordListByUserId(@Param("webUtil")WxPaidrecord wxPaidrecord);

    /**
     * 根据 userId,paidTime 查询缴费记录并且分页
     * @param webUtil
     * @return
     */
	public List<WxPaidrecord> selectWxPaidrecordListByUserIdV2(@Param("webUtil")WebUtil webUtil);

	 /**
     * 根据 userId,paidTime 查询缴费记录总数
     * @param webUtil
     * @return
     */
	public int selectWxPaidrecordListByUserIdCount(@Param("webUtil")WebUtil webUtil);

	 /**
     * 根据 userId,startTime,endTime 查询停车场
     * @param webUtil
     * @return
     */
	public List<Park> getParkByUserId(@Param("webUtil")WebUtil webUtil);

}
